package com.ruoyi.system.service;

import com.ruoyi.system.domain.SysUserRole;

import java.util.List;

/**
 * @author 明一G
 * @date 2023/3/25 16:01
 */
public interface ISysUserRoleService {
	public int insertByUserIdAndRoleIds(Long userId, Long[] roleIds);
	public int insert(SysUserRole userRole);
	public List<SysUserRole> getByUserId(Long userId);
	public int deleteByUserId(Long userId);
	public int deleteByUserIds(Long[] userIds);
	public boolean checkUserHasRoleByUserId(Long userId);
	public Long countUserRoleByRoleId(Long roleId);
}
